package com.arron.DesignMode.builder;

/**
 * @Classname Client
 * @Date 2020/11/6 17:16
 * @Created by 刘
 */
public class Client {

    public static void main(String[] args) {

        House house1 = new House();

        //创建房子
        HouseDirector houseDirector = new HouseDirector(new HightHouseBuilder(house1));


        House house = houseDirector.buildHouses();
        System.out.println(house);
        System.out.println("======================");
        houseDirector.setHouseBuilder(new CommonHouseBuilder(house1));

        House house2 = houseDirector.buildHouses();
        System.out.println(house2);
    }

}
